 <%@ page language="java" contentType="text/json; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.util.*, java.net.*, java.io.*, org.OpenGeoPortal.Solr.Searcher, org.apache.commons.lang.StringEscapeUtils "%>
<%
	String layerId$ = request.getParameter("layerId");
	String columnsToReturn = Searcher.getColumnsForFgdcText();
	String solrQuery = "q=LayerId" + Searcher.colon + layerId$ + columnsToReturn;
	
	String server = request.getServerName();
	//server = "geoportal-dev.atech.tufts.edu";	
	String json = Searcher.executeSolrSearch(server, solrQuery);
	String improvedJson = StringEscapeUtils.unescapeHtml(json);
	out.write(json);
%>